home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / doc / TUTORIAL < prev    next >
Text File  |  1994-02-13  |  28KB  |  678 lines

  1. Every Emacs and Emacs varient I've ever used has had some variation
  2. of this file.  AME is no different.  For its TUTORIAL, I've found the
  3. GNU tutorial and modified it to match AME and the Amiga.  After all, 
  4. Emacs just isn't Emacs without a tutorial.    - andy finkel
  5. ---------------
  6. Copyright (c) 1985 Free Software Foundation, Inc;  See end for conditions.
  7.  
  8.  
  9. You are looking at the AME tutorial.
  10.  
  11. AME commands generally involve the CONTROL key (labelled
  12. CTRL) or the META key (labelled ESC).  Rather than
  13. write out META or CONTROL each time we want you to prefix a character,
  14. we'll use the following abbreviations:
  15.  
  16.  C-<chr>  means hold the CONTROL key while typing the character <chr>
  17.       Thus, C-f would be: hold the CONTROL key and type f.
  18.  M-<chr>  means type <ESC>, release it, then type the character <chr>.  
  19.       "<ESC>" stands for the key labelled "ESC".  The M stands
  20.       for Meta.
  21.  
  22. Important note: to end the AME session, type C-c.  (One character.)
  23.  
  24. Other important note:  In the various AME displays, a control character
  25. will be displayed with a leading caret, ie ^C is control C.
  26.  
  27. The characters ">>" at the left margin indicate directions for you to
  28. try using a command.  For instance:
  29. <<Blank lines inserted here by startup of help-with-tutorial>>
  30. >>  Now type C-v (View next screen) to move to the next screen.
  31.     (go ahead, do it by depressing the control key and v together).
  32.     From now on, you'll be expected to do this whenever you finish
  33.     reading the screen.
  34.  
  35. Note that there is an overlap when going from screen to screen; this
  36. provides some continuity when moving through the file.
  37.  
  38. The first thing that you need to know is how to move around from
  39. place to place in the file.  You already know how to move forward a
  40. screen, with C-v.  To move backwards a screen, type M-v (which is <ESC>v).
  41.  
  42. >>  Try typing M-v and then C-v to move back and forth a few times.
  43.  
  44.  
  45. SUMMARY
  46. -------
  47.  
  48. The following commands are useful for viewing screenfuls:
  49.  
  50.     C-v    Move forward one screenful
  51.     M-v    Move backward one screenful
  52.     C-l    Clear screen and redisplay everything
  53.          putting the text near the cursor at the center.
  54.          (That's control-L, not control-1.
  55.           There is no such character as control-1.)
  56.  
  57. >> Find the cursor and remember what text is near it.
  58.    Then type a C-l.
  59.    Find the cursor again and see what text is near it now.
  60.  
  61.  
  62. BASIC CURSOR CONTROL
  63. --------------------
  64.  
  65. Getting from screenful to screenful is useful, but how do you
  66. reposition yourself within a given screen to a specific place?
  67. There are several ways you can do this.  One way (not the best, but
  68. the most basic) is to use the commands previous, backward, forward
  69. and next.  As you can imagine these commands (which are given to
  70. AME as C-p, C-b, C-f, and C-n  respectively) move the cursor from
  71. where it currently is to a new place in the given direction.  Here,
  72. in a more graphical form are the commands:
  73.  
  74.               Previous line, C-p
  75.                   :
  76.                   :
  77.    Backward, C-b .... Current cursor position .... Forward, C-f
  78.                   :
  79.                   :
  80.               Next line, C-n
  81.  
  82. >> Move the cursor to the line in the middle of that diagram
  83.    and type C-l to see the whole diagram centered in the screen.
  84.  
  85. You'll probably find it easy to think of these by letter.  P for
  86. previous, N for next, B for backward and F for forward.  These are
  87. the basic cursor positioning commands and you'll be using them ALL
  88. the time so it would be of great benefit if you learn them now.
  89.  
  90. In AME, the cursor arrow keys work as well;  Cursor Up arrow is
  91. previous line, cursor down arrow is next line, cursor left arrow is backward, 
  92. cursor right arrow is forward.  This may be more convenient than using the
  93. control sequences.
  94.  
  95. >> Do a few C-n's to bring the cursor down to this line.
  96.  
  97. >> Move into the line with C-f's and then up with C-p's.
  98.    See what C-p does when the cursor is in the middle of the line.
  99.  
  100. Lines are separated by Newline characters.  For most applications
  101. there should normally be a Newline character at the end of the text,
  102. as well, but it is up to you to make sure of this.  A file can
  103. validly exist without a Newline at the end.
  104.  
  105. >> Try to C-b at the beginning of a line.  Do a few more C-b's.
  106.    Then do C-f's back to the end of the line and beyond.
  107.  
  108. When you go off the top or bottom of the screen, the text beyond
  109. the edge is shifted onto the screen so that your instructions can
  110. be carried out while keeping the cursor on the screen.
  111.  
  112. >> Try to move the cursor off the bottom of the screen with C-n and
  113.    see what happens.
  114.  
  115. If moving by characters is too slow, you can move by words.  M-f
  116. (Meta-f) moves forward a word and M-b moves back a word.
  117.  
  118. >> Type a few M-f's and M-b's.  Intersperse them with C-f's and C-b's.
  119.  
  120. Notice the parallel between C-f and C-b on the one hand, and M-f and
  121. M-b on the other hand.  Very often Meta characters are used for
  122. operations related to English text whereas Control characters operate
  123. on the basic textual units that are independent of what you are
  124. editing (characters, lines, etc).
  125.  
  126. >> Try a couple of C-a's, and then a couple of C-e's.
  127.  
  128. See how repeated C-a's do nothing.  Do you think that this is right?
  129.  
  130. Note:  in AME, shift-cursor left acts the same as C-a , and 
  131. shift-cursor right acts the same as C-e.
  132.  
  133. Two other simple cursor motion commands are M-< (Meta Less-than),
  134. which moves to the beginning of the file, and M-> (Meta Greater-than),
  135. which moves to the end of the file.  You probably don't need to try
  136. them, since finding this spot again will be boring.  On most terminals
  137. the "<" is above the comma and you must use the shift key to type it.
  138. On these terminals you must use the shift key to type M-< also;
  139. without the shift key, you would be typing M-comma.
  140.  
  141. The location of the cursor in the text is also called "point".  To
  142. paraphrase, the cursor shows on the screen where point is located in
  143. the text.
  144.  
  145. Here is a summary of simple moving operations including the word and
  146. sentence moving commands:
  147.  
  148.     C-f    (Cursor Right)    Move forward a character
  149.     C-b    (Cursor Left)    Move backward a character
  150.  
  151.     M-f    Move forward a word
  152.     M-b    Move backward a word
  153.  
  154.     C-n    (Cursor Down)    Move to next line
  155.     C-p    (Cursor Up)    Move to previous line
  156.  
  157.     C-a    (Shift Left)    Move to beginning of line
  158.     C-e    (Shift Right)    Move to end of line
  159.  
  160.     M-<    Go to beginning of file
  161.     M->    Go to end of file
  162.  
  163. >> Try all of these commands now a few times for practice.
  164.    Since the last two will take you away from this screen,
  165.    you can come back here with M-v's and C-v's.  These are
  166.    the most often used commands.
  167.  
  168. Like all other commands in AME, these commands can be given
  169. arguments which cause them to be executed repeatedly.  The way you
  170. give a command a repeat count is by typing C-u and then the digits
  171. before you type the command.  
  172.  
  173. For instance, C-u 8 C-f moves forward eight characters.
  174.     
  175. >> Try giving a suitable argument to C-n or C-p to come as close
  176.    as you can to this line in one jump.
  177.  
  178.  
  179. WHEN AME IS HUNG
  180. -----------------
  181.  
  182. If AME gets into an infinite (or simply very long) computation which
  183. you don't want to finish, you can stop it safely by typing C-g.
  184. You can also use C-g to discard a numeric argument or the beginning of
  185. a command that you don't want to finish.
  186.  
  187. >> Type C-u 100 to make a numeric arg of 100, then type C-g.
  188.    Now type C-f.  How many characters does it move?
  189.    If you have typed an <ESC> by mistake, you can get rid of it
  190.    with a C-g.
  191.  
  192.  
  193. WINDOWS
  194. -------
  195.  
  196. AME can have several windows, each displaying its own text.
  197. At this stage it is better not to go into the techniques of
  198. using multiple windows.  But you do need to know how to get
  199. rid of extra windows that may appear to display help or
  200. output from certain commands.  It is simple:
  201.  
  202.     C-x 1    One window (i.e., kill all other windows).
  203.  
  204. That is Control-x followed by the digit 1.
  205. C-x 1 makes the window which the cursor is in become
  206. the full screen, by getting rid of any other windows.
  207.  
  208. >> Move the cursor to this line and type C-u 0 C-l.
  209. >> Type ESC-? move
  210.    See how this window shrinks, while a new one appears
  211.    to display a listing of the commands that contain move.
  212.  
  213. >> Type C-x 1 and see the help window disappear.
  214.  
  215.  
  216. INSERTING AND DELETING
  217. ----------------------
  218.  
  219. If you want to insert text, just type it.  Characters which you can
  220. see, such as A, 7, *, etc. are taken by AME as text and inserted
  221. immediately.  Type <Return> (the carriage-return key) to insert a
  222. Newline character.
  223.  
  224. You can delete the last character you typed by typing <Backspace>.
  225. <Backspace> is a key on the keyboard, which is at the top right corner
  226. of the keyboard, and is labelled with a left arrow.  More generally, <Backspace>
  227. deletes the character immediately before the current cursor position.
  228.  
  229. >> Do this now, type a few characters and then delete them
  230.    by typing <Backspace> a few times.  Don't worry about this file
  231.    being changed; you won't affect the master tutorial.  This is just
  232.    a copy of it.
  233.  
  234. >> Now start typing text until you reach the right margin, and keep
  235.    typing.  When a line of text gets too big for one line on the
  236.    screen, the line of text is "extended" and is scrolled left.
  237.    The $ at the right margin indicates a line which has
  238.    been extended.
  239. >> Use <Backspace>s to delete the text until the line fits on one screen
  240.    line again.  The extention line goes away.
  241.  
  242. >> Move the cursor to the beginning of a line and type <Backspace>.  This
  243.    deletes the newline before the line and merges the line onto
  244.    the previous line.  The resulting line may be too long to fit, in
  245.    which case it has a continuation line.
  246. >> Type <Return> to reinsert the Newline you deleted.
  247.  
  248. Remember that most AME commands can be given a repeat count;
  249. this includes characters which insert themselves.
  250.  
  251. >>  Try that now -- type C-u 8 * and see what happens.
  252.  
  253. You've now learned the most basic way of typing something in
  254. AME and correcting errors.  You can delete by words or lines
  255. as well.  Here is a summary of the delete operations:
  256.  
  257.     <Backspace>     delete the character just before the cursor
  258.     C-d (or the Delete key)  delete the next character after the cursor
  259.  
  260.     M-<Backspace>   kill the word immediately before the cursor
  261.     M-d         kill the next word after the cursor
  262.  
  263.     C-k         kill from the cursor position to end of line
  264.     M-k         kill to the end of the current paragraph
  265.  
  266. Notice that <Backspace> and C-d vs M-<Backspace> and M-d extend the parallel
  267. started by C-f and M-f (well, <Backspace> isn't really a control
  268. character, but let's not worry about that).
  269.  
  270. Now suppose you kill something, and then you decide that you want to
  271. get it back?  Well, whenever you kill something bigger than a
  272. character, AME saves it for you.  To yank it back, use C-y.  You
  273. can kill text in one place, move elsewhere, and then do C-y; this is
  274. a good way to move text around.  Note that the difference
  275. between "Killing" and "Deleting" something is that "Killed" things
  276. can be yanked back, and "Deleted" things cannot.  Generally, the
  277. commands that can destroy a lot of text save it, while the ones that
  278. attack only one character, or nothing but blank lines and spaces, do
  279. not save.
  280.  
  281. For instance, type C-n a couple times to postion the cursor
  282. at some line on this screen.
  283.  
  284. >> Do this now, move the cursor and kill that line with C-k.
  285.  
  286. Note that a single C-k kills the contents of the line, and a second
  287. C-k kills the line itself, and make all the other lines move up.  If
  288. you give C-k a repeat count, it kills that many lines AND their
  289. contents.
  290.  
  291. The text that has just disappeared is saved so that you can
  292. retrieve it.  To retrieve the last killed text and put it where
  293. the cursor currently is, type C-y.
  294.  
  295. >> Try it; type C-y to yank the text back.
  296.  
  297. Think of C-y as if you were yanking something back that someone
  298. took away from you.  Notice that if you do several C-k's in a row
  299. the text that is killed is all saved together so that one C-y will
  300. yank all of the lines.
  301.  
  302. >> Do this now, type C-k several times.
  303.  
  304. Now to retrieve that killed text:
  305.  
  306. >> Type C-y.  Then move the cursor down a few lines and type C-y
  307.    again.  You now see how to copy some text.
  308.  
  309.  
  310. UNDO
  311. ----
  312.  
  313. Any time you make a change to the text and wish you had not done so,
  314. you can undo the change (return the text to its previous state)
  315. with the undo command, C-x C-u.  Normally, C-x C-u undoes one command's
  316. worth of changes; if you repeat the C-x C-u several times in a row,
  317. each time undoes one more command.  There are two exceptions:
  318. commands that made no change (just moved the cursor) do not count,
  319. and self-inserting characters are often lumped together in groups
  320. of up to 20.  This is to reduce the number of C-x C-u's you have to type.
  321.  
  322. >> Kill this line with C-k, then type C-x C-u and it should reappear.
  323.  
  324.  
  325. Giving a numeric argument to C-_ or C-x u is equivalent to repeating
  326. it as many times as the argument says.
  327.  
  328. Undo is controlled by an AME variable;  If the above example does not
  329. work, you will have to setprefs UNDO.
  330.  
  331. FILES
  332. -----
  333.  
  334. In order to make the text you edit permanent, you must put it in a
  335. file.  Otherwise, it will go away when your invocation of AME goes
  336. away.  You put your editing in a file by "finding" the file.  What
  337. finding means is that you see the contents of the file in your AME;
  338. and, loosely speaking, what you are editing is the file itself.
  339. However, the changes still don't become permanent until you "save" the
  340. file.  This is so you can have control to avoid leaving a half-changed
  341. file around when you don't want to.  Even then, AME leaves the
  342. original file under a changed name in case your changes turn out
  343. to be a mistake.
  344.  
  345. If you look near the bottom of the screen you will see a reversed line
  346. of a different color, and contains the string "AME.01: TUTORIAL".
  347. Your copy of the AME tutorial is called "TUTORIAL".  Whatever
  348. file you find, that file's name will appear in that precise
  349. spot.
  350.  
  351. The commands for finding and saving files are unlike the other
  352. commands you have learned in that they consist of two characters.
  353. They both start with the character Control-x.  There is a whole series
  354. of commands that start with Control-x; many of them have to do with
  355. files, buffers, and related things, and all of them consist of
  356. Control-x followed by some other character.
  357.  
  358. Another thing about the command for finding a file is that you have
  359. to say what file name you want.  We say the command "reads an argument
  360. from the terminal" (in this case, the argument is the name of the
  361. file).  After you type the command
  362.  
  363.     C-x C-v   Visit a file
  364.  
  365. AME brings up a file requester and asks you to type the file name.
  366. When you type <Return> to end the file name, the file requester is 
  367. no longer needed, so it disappears.
  368.  
  369. >> Type C-x C-v, then click on the cancel button.  This cancels the 
  370.    file requester and also cancels the C-x C-r command that was using the
  371.    requester.  So you do not read any file.
  372.  
  373. In a little while the file contents appear on the screen.  You can
  374. edit the contents.  When you wish to make the changes permanent,
  375. issue the command
  376.  
  377.     C-x C-s   Save the file
  378.  
  379. The contents of AME are written into the file.  If backups are on, the first 
  380. time you do this, the original file is renamed to a new name so that it
  381. is not lost.  The new name is made by appending ".BAK" to the end
  382. of the original file's name.
  383.  
  384. When saving is finished, AME prints the number of lines written.
  385. You should save fairly often, so that you will not lose very much
  386. work if the system should crash.
  387.  
  388. >> Type C-x C-s, saving your copy of the tutorial.
  389.    This should print "Wrote 761 lines" at the bottom of the screen.
  390.  
  391. To make a new file, just visit it "as if" it already existed.  Then
  392. start typing in the text.  When you ask to "save" the file, AME
  393. will really create the file with the text that you have inserted.
  394. From then on, you can consider yourself to be editing an already
  395. existing file.
  396.  
  397.  
  398. BUFFERS
  399. -------
  400.  
  401. If you visit a second file with C-x C-v, the first file remains
  402. inside AME.  You can switch back to it by finding it again with
  403. C-x C-v.  This way you can get quite a number of files inside AME.
  404.  
  405. The object inside AME which holds the text read from one file
  406. is called a "buffer."  Finding a file makes a new buffer inside AME.
  407. To see a list of the buffers that exist in AME, type
  408.  
  409.     C-x C-b   List buffers
  410.  
  411. >> Try C-x C-b now.
  412.  
  413. See how each buffer has a name, and it may also have a file name
  414. for the file whose contents it holds.  Some buffers do not correspond
  415. to files.  ANY text you see in an AME window has to be in some buffer.
  416.  
  417. >> Type C-x 1 to get rid of the buffer list.
  418.  
  419. If you make changes to the text of one file, then find another file,
  420. this does not save the first file.  Its changes remain inside AME,
  421. in that file's buffer.  The creation or editing of the second file's
  422. buffer has no effect on the first file's buffer.  This is very useful,
  423. but it also means that you need a convenient way to save the first
  424. file's buffer.  It would be a nuisance to have to switch back to
  425. it with C-x C-v in order to save it with C-x C-s.  So we have
  426.  
  427.     C-x C-m     Save modified buffers
  428.  
  429. C-x C-m goes through the list of all the buffers you have
  430. and finds the ones that contain files you have changed, and
  431. saves them.
  432.  
  433.  
  434. EXTENDING THE COMMAND SET
  435. -------------------------
  436.  
  437. There are many, many more AME commands than could possibly be put
  438. on all the control and meta characters.  AME gets around this with
  439. the eXtended command.  This comes in two flavors:
  440.  
  441.     C-x    Character eXtend.  Followed by one character.
  442.     M-x (or (ESC-ESC) Named command extend.  Followed by a long name.
  443.  
  444. These are commands that are generally useful but used less than the
  445. commands you have already learned about.  You have already seen two
  446. of them: the file commands C-x C-v to Find and C-x C-s to Save.
  447. Another example is the command to tell AME that you'd like to stop
  448. editing and get rid of AME.  The command to do this is C-x C-c.
  449. (Don't worry; it offers to save each changed file before it kills the
  450. AME.)
  451.  
  452.  
  453. There are many C-x commands.  The ones you know are:
  454.  
  455.     C-x C-v        Visit file.
  456.     C-x C-s        Save file.
  457.     C-x C-b        List buffers.
  458.     C-x C-c        Quit AME.
  459.     C-x C-u        Undo.
  460.  
  461. Named eXtended commands are commands which are used even less
  462. frequently, or commands which are used only in certain modes.  These
  463. commands are usually called "functions".  An example is the function
  464. findreplace, which globally replaces one string with another.  When
  465. you type M-x, AME prompts you at the bottom of the screen with
  466. M-x and you should type the name of the function you wish to call; in
  467. this case, "findreplace".  Just type "findr<SPACE>" and AME will
  468. complete the name.  End the command name with <Return>.
  469. Then type the two "arguments"--the string to be replaced, and the string
  470. to replace it with--each one ended with a Return.
  471.  
  472. >> Move the cursor to the blank line two lines below this one.
  473.    Then type M-x findr<SPACE><Return>changed<Return>altered<Return>.
  474.  
  475.    Notice how this line has changed: you've replaced
  476.    the word c-h-a-n-g-e-d with "altered" wherever it occured
  477.    after the cursor.
  478.  
  479.  
  480. MODE LINE
  481. ---------
  482.  
  483. If AME sees that you are typing commands slowly it shows them to you
  484. at the bottom of the screen in an area called the "echo area."  The echo
  485. area contains the bottom line of the screen.  The line immediately above
  486. it is called the MODE LINE.  The mode line says something like
  487.  
  488. * AME.01 TUTORIAL File: TUTORIAL
  489.  
  490. This is a very useful "information" line.
  491.  
  492. You already know what the second name (the filename) means--it is the file 
  493. you have found.  The other name is the name of this buffer.
  494. The AME.01 is the name of the Arexx port.
  495.  
  496. The stars near the front mean that you have made changes to the text.
  497. Right after you visit or save a file, there is no star.
  498.  
  499. The part of the mode line at the right is for letters to tell you what
  500. modes you are in.  The default mode is blank which is what you
  501. are in now.  It is an example of a "major mode".  There are several
  502. major modes in AME for editing different languages and text, such as
  503. CMODE mode, EXT mode, etc.  At any time one and only one major mode is
  504. active, and its letter can always be found in the mode line on the right.
  505. Each major mode makes a few commands behave
  506. differently.  For example, there are commands for creating comments in
  507. a program, and since each programming language has a different idea of
  508. what a comment should look like, each major mode has to insert
  509. comments differently.  The Setprefs command is used to get into the
  510. modes.  For example, M-s CMODE is how to get into C mode.  
  511.  
  512. If you are going to be editing English text, such as this file, you
  513. should probably use normal mode.
  514. >> Type M-s C-S CMODE<Return>.
  515.  
  516. Don't worry, none of the commands you have learned changes AME in
  517. any great way. Major modes are usually like
  518. that: commands don't change into completely unrelated things, but they
  519. work a little bit differently.
  520.  
  521. Major modes are called major because there are also minor modes.
  522. They are called minor because they aren't alternatives to the major
  523. modes, just minor modifications of them.  Each minor mode can be
  524. turned on or off by itself, regardless of what major mode you are in,
  525. and regardless of the other minor modes.  So you can use no minor
  526. modes, or one minor mode, or any combination of several minor modes.
  527.  
  528. One minor mode which is very useful, especially for editing English
  529. text, is WRAP mode.  When this mode is on, AME breaks the line
  530. in between words automatically whenever the line gets too long.  You
  531. can turn this mode on by doing M-s WRAP<Return>.  When the
  532. mode is on, you can turn it off by doing M-s C-s WRAP<Return>.
  533.  
  534. >> Type M-s WRAP<Return> now.  Then insert a line of "asdf "
  535.    over again until you see it divide into two lines.  You must put in
  536.    spaces between them because WRAP breaks lines only at spaces.
  537.  
  538. The margin is usually set at 70 characters, but you can change it
  539. with the M-s RIGHT command.  You should give the margin setting you want
  540. as a number following the RIGHT.
  541.  
  542. >> Type M-s RIGHT 20<Return>.
  543.    Then type in some text and see AME fill lines of 20
  544.    characters with it.  Then set the margin back to 70 using
  545.    M-s RIGHT again.
  546.  
  547. If you makes changes in the middle of a paragraph, WRAP mode
  548. does not re-fill it for you.
  549. To re-fill the paragraph, type M-j  with the cursor inside
  550. that paragraph.
  551.  
  552. >> Move the cursor into the previous paragraph and type M-j.
  553.  
  554. SEARCHING
  555. ---------
  556.  
  557. AME can do searches for strings (these are groups of contiguous
  558. characters or words) either forward through the file or backward
  559. through it.  To search for the string means that you are trying to
  560. locate it somewhere in the file and have AME show you where the
  561. occurrences of the string exist.  This type of search is somewhat
  562. different from what you may be familiar with.  It is a search that is
  563. performed as you type in the thing to search for.  The command to
  564. initiate a search is C-s for forward search, and C-r for reverse
  565. search.  BUT WAIT!  Don't do them now.  When you type C-s you'll
  566. notice that the string "I-search" appears as a prompt in the echo
  567. area.  This tells you that AME is in what is called an incremental
  568. search waiting for you to type the thing that you want to search for.
  569. <ESC> terminates a search.
  570.  
  571. >> Now type C-s to start a search.  SLOWLY, one letter at a time,
  572.    type the word 'cursor', pausing after you type each
  573.    character to notice what happens to the cursor.
  574. >> Type C-s to find the next occurrence of "cursor".
  575. >> Now type <Backspace> four times and see how the cursor moves.
  576. >> Type <ESC> to terminate the search.
  577.  
  578. Did you see what happened?  AME, in an incremental search, tries to
  579. go to the occurrence of the string that you've typed out so far.  To go
  580. to the next occurrence of 'cursor' just type C-s again.  If no such
  581. occurrence exists AME beeps and tells you that it is a failing
  582. search.  C-g would also terminate the search.
  583.  
  584. If you are in the middle of an incremental search and type <Backspace>,
  585. you'll notice that the last character in the search string is erased
  586. and the search backs up to the last place of the search.  For
  587. instance, suppose you currently have typed 'cu' and you see that your
  588. cursor is at the first occurrence of 'cu'.  If you now type <Backspace>,
  589. the 'u' on the search line is erased and you'll be repositioned in the
  590. text to the occurrence of 'c' where the search took you before you
  591. typed the 'u'.  This provides a useful means for backing up while you
  592. are searching.
  593.  
  594. If you are in the middle of a search and happen to type a control
  595. character (other than a C-s or C-r, which tell AME to search for the
  596. next occurrence of the string), the search is terminated.
  597.  
  598. The C-s starts a search that looks for any occurrence of the search
  599. string AFTER the current cursor position.  But what if you want to
  600. search for something earlier in the text?  To do this, type C-r for
  601. Reverse search.  Everything that applies to C-s applies to C-r except
  602. that the direction of the search is reversed.
  603.  
  604.  
  605. GETTING MORE HELP
  606. -----------------
  607.  
  608. In this tutorial we have tried to supply just enough information to
  609. get you started using AME.  There is so much available in AME that
  610. it would be impossible to explain it all here.  However, you may want
  611. to learn more about AME since it has numerous desirable features
  612. that you don't know about yet.  AME has some internal
  613. documentation, mainly listings of commands and variables.  
  614. All of these commands can be accessed through the help key and the
  615. describekey command (usually accessed by typing F1).
  616.  
  617. The most basic HELP feature is describekey (F1).  Type F1, and a
  618. command character or sequence, and AME displays the name of
  619. the command.
  620.  
  621. >> Type F1 C-p.
  622.   The message should be something like
  623.  
  624.     ^P is bound to moveup
  625.  
  626. This tells you the "name of the function".  That is important in
  627. writing Arexx code to extend AME; it also is enough to remind
  628. you of what the command does if you have seen it before but did
  629. not remember.
  630.  
  631. Multi-character commands such as C-x C-s and <ESC>v are also allowed after
  632. describekey.
  633.  
  634.    HELP        Command Apropos.  Type in a keyword and AME will list
  635.         all the commands whose names contain that keyword.
  636.         These commands can all be invoked with Meta-x.
  637.         For some commands, Command Apropos will also list a one
  638.         or two character sequence which has the same effect.
  639.  
  640. >> Type HELP file<Return>.  You will see a list of all M-x commands
  641. with "file" in their names.  You will also see commands
  642. like ^X-F and ^X-^I listed beside the command names
  643. setfilepath and insertfile.
  644.  
  645.  
  646. CONCLUSION
  647. ----------
  648.  
  649. Remember, to exit AME permanently use C-x C-c.
  650.  
  651. This tutorial is meant to be understandable to all new users, so if
  652. you found something unclear, don't sit and blame yourself - complain!
  653.  
  654.  
  655. COPYING
  656. -------
  657.  
  658. This tutorial descends from a long line of Emacs tutorials
  659. starting with the one written by Stuart Cracraft for the original Emacs.
  660.  
  661. This version of the tutorial, like GNU Emacs, is copyrighted, and
  662. comes with permission to distribute copies on certain conditions:
  663.  
  664. Copyright (c) 1985 Free Software Foundation
  665.  
  666.    Permission is granted to anyone to make or distribute verbatim copies
  667.    of this document as received, in any medium, provided that the
  668.    copyright notice and permission notice are preserved,
  669.    and that the distributor grants the recipient permission
  670.    for further redistribution as permitted by this notice.
  671.  
  672.    Permission is granted to distribute modified versions
  673.    of this document, or of portions of it,
  674.    under the above conditions, provided also that they
  675.    carry prominent notices stating who last altered them.
  676.  
  677. This tutorial was modified 2/8/93 by Andy Finkel, Flying Cat, Inc. 
  678. to match the AME editor.